package com.guigu.ababa.ababaclassroom.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data//生成getter,setter,toString等函数
@AllArgsConstructor//生成全参数构造函数
@NoArgsConstructor//生成无参构造函数
public class Ab_user {

    @TableId(type = IdType.AUTO)
    private int userid;//用户id
    private String openid;//微信id
    private String username;//用户账号
    private String phone;//用户手机号码
    private String salt;//盐值
    private int state;//状态  0正常,1封禁

    @TableField(exist = false)
    private String code;//验证码

    @TableField(exist = false)
    private String touxiang;//头像url
}
